package exercises.Charpter10;

import innerclasses.controller.Event;

public class Twentyfive extends Twentyfour{
	  private boolean waterStrainer = false;
	  public class WaterStrainerOn extends Event {
		    public WaterStrainerOn(long delayTime) { super(delayTime); }
		    public void action() {
		      // Put hardware control code here to
		      // physically turn on the light.
		    	waterStrainer = true;
		    }
		    public String toString() { return "WaterStrainer is on"; }
	  }
	  public class WaterStrainerOff extends Event {
		    public WaterStrainerOff(long delayTime) { super(delayTime); }
		    public void action() {
		      // Put hardware control code here to
		      // physically turn off the light.
		    	waterStrainer = false;
		    }
		    public String toString() { return "WaterStrainer is off"; }
	  }
}
